package com.duapk.index.constant;

import java.io.File;

import com.duapk.index.conf.ConfigFactory;


/**
 * 常量类
 * 
 * @Package: com.duapk.index.constant
 * @ClassName: Constant
 * @author: jiangzheng
 * @date: Mar 25, 2011 10:20:50 AM
 * 
 */
public final class Constant {

	public static final String APK_INDEX_HOME = "apkIndexHome";

	/**
	 * 工程部署路径
	 */
	public static final String APP_PATH = System
			.getProperty(Constant.APK_INDEX_HOME);

	/**
	 * CSV文件所在的目录
	 */
	public static final String CSV_SOURCE = ConfigFactory.getString("Path.csvSource", "file");

	/**
	 * 词库模型文件所在目录
	 */
	public static final String MODELS_PATH = APP_PATH + File.separator
			+ ConfigFactory.getString("Path.modelsDir", "models");

	/**
	 * 索引目录
	 */
	public static final String INDEX_PATH = APP_PATH + File.separator
			+ ConfigFactory.getString("Path.indexDir", "index");

	public static final String UTF_ENCODING = "UTF-8";

	public static final String COMMAND_SHUTDOWN = "SHUTDOWN";
}
